<?php

namespace app\common\model;

use think\facade\Cache;
use think\Model;

/**
 * 房屋委托
 */
class Entrust extends BaseModel
{

    // 表名,不含前缀
    protected $name = 'entrust';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'datetime';
    // 定义时间戳字段名
    protected $updateTime = false;

    public function region()
    {
        return $this->belongsTo("region", "area_id")->setEagerlyType(0);
    }

    public function getStatusList()
    {
        return [
            [
                "id" => 1,
                "title" => "未处理"
            ],
            [
                "id" => 2,
                "title" => "已处理"
            ],
        ];
    }


}
